#include<stdio.h>
int main()
{ 
	int i;
	int j;
	int n;
	int m;
	int ai;
	int sum;
	while(scanf("%d %d",&n,&m)!=EOF){
		i=1;
		ai=2;
		while(n-i>=m){
			for(sum=0,j=0;j<m;j++,i++){
				sum=sum+ai;
				ai=ai+2;
			}
			printf("%d ",sum/m);
		}
		sum=0;
		j=n-i+1;
		while(i++<=n){
			sum=sum+ai;
			ai=ai+2;
		}
		printf("%d\n",sum/j);
	}
	return 0;
}
